package com.comm.controller;

import com.comm.entity.ExpressCompanyMapping;
import com.comm.entity.Page;
import com.comm.service.IExpressCompanyService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * 系统平台物流公司关系映射
 */
@Controller
@RequestMapping("/trade/express/company")
public class ExpressCompanyController {

    @Resource
    private IExpressCompanyService expressCompanyService;

    @RequestMapping(value = "/getList", method = RequestMethod.POST)
    @ResponseBody
    public Object delgetListete(ExpressCompanyMapping expressCompanyMapping, Page page) throws Exception {
        return expressCompanyService.getAll(expressCompanyMapping, page);

    }
}
